<template>
  <el-amap id="mapcointainer" style="height:100%;" :plugin="plugin"></el-amap>
</template>

<script>
import {lazyAmapApiLoaderInstanse} from 'vue-amap';
export default {
  data () {
    return {
    plugin: ['ToolBar','Scale',{
            pName: 'MapType',
            defaultType: 1,
            events: {
              init(instance) {
                console.log(instance);
              }
            }
          }],
    }
  },
  mounted() {
  this.map = new AMap.Map('mapcointainer', {
  resizeEnable:true,
  zoom:11,
  center:[116.397428,39.90923]
  })
  }
}
</script>